#!/home/xuguoqun/anaconda3/bin/python
# -*- coding: utf-8 -*-
# @CreateTime    : 2020/8/06
# @Author  : jiyu
# @Email   : 57296141@qq.com
# @File    : Login.py
# @Company: Nanjing-Anyuan
import requests
from requests.exceptions import RequestException
from yunying.Url_Factory import Url_Factory
from yunying.excel import *
import time
import datetime
import re
import json
import os
import configparser

class Login(object):
    def __init__(self):
        self.headers = {
            'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36',
            'Referer': 'https://www.sinochemlogistics.com/home/login',
            'Host': 'www.sinochemlogistics.com'
        }
        self.login_url = 'https://www.sinochemlogistics.com/api2/user/signin'
        self.login_session = requests.Session()

    ##切换容器
    def switch_ent(self, switch_url):
        res = self.login_session.get(switch_url, headers=self.headers)
        if res.status_code == 200:
            return "switch_ent OK"
        return "switch_ent Error"
    ##获取所有的数据--->json
    def availe_origin_data(self, page=1):
        logined_url = Url_Factory().url_splice(page)
        res = self.login_session.get(logined_url, headers=self.headers)
        if res.status_code == 200:
            return res.text
        return "availe_origin_data Error"
    ##login
    def login(self, username, password):
        try:
            data1 = {
                'username': username,
                'password': password
            }
            res = self.login_session.post(self.login_url, data=data1, headers=self.headers)
            if res.status_code == 200:
                return res
            return "login Not 200"
        except RequestException:
            return "login Error"

    ##登录运营日报接口
    def loginyy(self, yyurl):
        try:
            res = self.login_session.get(yyurl, headers=self.headers)
            if res.status_code == 200:
                return res
            return "login Not 200"
        except RequestException:
            return "login Error"

    ##登录运营日报接口,计算登录人数
    def tongji(self, enterprise):
        enterprise_url = urlfactory.switch_rongqi(enterprise)
        switchurl = login.loginyy(enterprise_url)
        urlyy = urlfactory.url_splice()
        department = yonghuqiye[enterprise]
        print(department)
        data = self.login_session.get(urlyy, headers=self.headers)
        data=json.loads(data.text)
        total=data['result']['total']
        page=total//100 + 1
        a=[]
        b=[]
        c=[]
        Admin=["root","LETS","CS","SM","EM","WMS","CX","FM","OA","CM","HR","OP","BD","TEST","JK","ZHYY","ZHYW"]
        for i in range(1, page+1):
            urlyy = urlfactory.url_splice(page=i)
            data = login.loginyy(urlyy)
            user = json.loads(data.text)
            for x in user['result']['data']:
                # print(x)
                if user['result']['data'][x]['user_id'] not in Admin:
                    a.append(user['result']['data'][x]['user_id'])
                if user['result']['data'][x]['user_id'] not in Admin and user['result']['data'][x]['top_department'] == department and user['result']['data'][x]['client_type'] == "web":
                    b.append(user['result']['data'][x]['user_id'])
                if user['result']['data'][x]['user_id'] not in Admin  and user['result']['data'][x]['top_department'] == department:
                    if user['result']['data'][x]['client_type'] == "android" or user['result']['data'][x]['client_type'] == "ios" :
                        c.append(user['result']['data'][x]['user_id'])
        ###元素去重
        totalnumn = list(set(a))
        webnum = list(set(b))
        phonenum = list(set(c))
        print(len(webnum))
        print(len(phonenum))
        return len(webnum),len(phonenum)

    def zengliang(self, enterprise):
        enterprise_url = urlfactory.switch_rongqi(enterprise)
        switchurl = login.loginyy(enterprise_url)
        zeng=[]
        today = datetime.date.today()
        oneday = datetime.timedelta(days=1)
        yesterday = today - oneday
        yesterday=str(yesterday)
        data1 = self.login_session.get(hse, headers=self.headers)
        data2 = self.login_session.get(yingjijiuyuan, headers=self.headers)
        data3 = self.login_session.get(oa, headers=self.headers)
        data4 = self.login_session.get(cm, headers=self.headers)
        data5 = self.login_session.get(yuangongfazhan, headers=self.headers)
        data6 = self.login_session.get(yewuzixitong, headers=self.headers)
        data7 = self.login_session.get(cangdanzixitong, headers=self.headers)
        print(data1.text)
        a = json.loads(data1.text)['result']['data'][yesterday]
        b = json.loads(data2.text)['result']['data'][yesterday]
        c = json.loads(data3.text)['result']['data'][yesterday]
        d = json.loads(data4.text)['result']['data'][yesterday]
        e = json.loads(data5.text)['result']['data'][yesterday]
        f = json.loads(data6.text)['result']['data'][yesterday]
        g = json.loads(data7.text)['result']['data'][yesterday]
        zeng.append(a[0])
        zeng.append(b[0])
        zeng.append(c[0])
        zeng.append(d[0])
        zeng.append(e[0])
        zeng.append(f[0])
        zeng.append(g[0])
        return zeng
if __name__ == '__main__':

    config = configparser.ConfigParser()
    config_file = 'config/config.ini'
    config.read(config_file, encoding='utf-8')
    login_url='https://www.sinochemlogistics.com/api2/user/signin'
    tuiguangenterpriselist=['zhonghuadongfang','','zhonghuayangzhou','zhonghuatianjin','zhonghuazhuhai','zhoushanguochu','zhonghuaxinghai','yingjijidi','zhonghuanantonggang']
    shangxianenterpriselist=['zhonghuazhoushan','zhonghuanantonggang']
    yonghuqiye = {'zhonghuanantonggang': '中化南通', 'zhonghuayangzhou': '中化扬州', 'zhonghuatianjin': '中化天津',
                 'zhonghuadongfang': '中化东方', 'zhonghuazhuhai': '中化珠海', 'zhoushanguochu': '舟山国储',
                 'zhonghuaxinghai': '中化兴海', 'yingjijidi': '中化应急', 'zhonghuazhoushan': '中化兴中' }
    login_username = config.get("Data_Main", "login_username")
    login_password = config.get("Data_Main", "login_password")
    login = Login()
    urlfactory = Url_Factory()
    a=login.login(login_username, login_password)
    # 应用平台使用增长接口
    now = datetime.datetime.now().strftime("%Y")
    print(now)
    time = datetime.datetime.now().timetuple()
    VersionInfo = now + "-" + str(time.tm_mon)
    print(str(VersionInfo))
    hse = "https://www.sinochemlogistics.com/napi/enterprise/getEntAppData?appIds[0][app_id]=QiYeAnQuanWuShiGuYun&appIds[0][app_type]=information&appIds[1][app_id]=YiRenYiDangTongBu&appIds[1][app_type]=information&appIds[2][app_id]=yongdianguocheng&appIds[2][app_type]=information&appIds[3][app_id]=qitijiancefenxi&appIds[3][app_type]=information&appIds[4][app_id]=JiGouXinXi&appIds[4][app_type]=information&appIds[5][app_id]=ZeRenShuQianDing&appIds[5][app_type]=workflow&appIds[6][app_id]=HuiYiJiLu6&appIds[6][app_type]=information&appIds[7][app_id]=WangGeHuaGuanLi&appIds[7][app_type]=information&appIds[8][app_id]=GangWeiGongZuoBiaoZh&appIds[8][app_type]=information&appIds[9][app_id]=ZeRenShuDangAn&appIds[9][app_type]=information&appIds[10][app_id]=ZeRenZhiPingGu&appIds[10][app_type]=workflow&appIds[11][app_id]=HSEZhuanJiaKuChengYu&appIds[11][app_type]=workflow&appIds[12][app_id]=HSEZhuanJiaTaiZhang&appIds[12][app_type]=information&appIds[13][app_id]=HSEWeiYuanHuiChengYu&appIds[13][app_type]=information&appIds[14][app_id]=QiYeZiZhiZhengZhao&appIds[14][app_type]=information&appIds[15][app_id]=NianDuPeiXunJiHua&appIds[15][app_type]=workflow&appIds[16][app_id]=PeiXunJiLu4&appIds[16][app_type]=information&appIds[17][app_id]=PeiXunJiHuaBianGeng&appIds[17][app_type]=workflow&appIds[18][app_id]=HSEPeiXunKeChengTiXi&appIds[18][app_type]=information&appIds[19][app_id]=JuZhenKeChengXinXi&appIds[19][app_type]=information&appIds[20][app_id]=PeiXunJuZhen&appIds[20][app_type]=information&appIds[21][app_id]=PeiXunShiShi22&appIds[21][app_type]=information&appIds[22][app_id]=RenYuanPeiXunJiLu&appIds[22][app_type]=information&appIds[23][app_id]=JianYiFanKui&appIds[23][app_type]=workflow&appIds[24][app_id]=SanJiPeiXunFanKui&appIds[24][app_type]=workflow&appIds[25][app_id]=RuSiPeiXunPingJiBiao&appIds[25][app_type]=information&appIds[26][app_id]=RenYuanPeiXunYiRenYi&appIds[26][app_type]=information&appIds[27][app_id]=YuanGongZiZhiZhengZh&appIds[27][app_type]=information&appIds[28][app_id]=BanZuXinXi&appIds[28][app_type]=information&appIds[29][app_id]=BanZuChuangXinHeLiHu&appIds[29][app_type]=workflow&appIds[30][app_id]=anZuChuangXinHeLiHu3&appIds[30][app_type]=information&appIds[31][app_id]=BanZuAnQuanHuoDong&appIds[31][app_type]=information&appIds[32][app_id]=BanZuHuoDongJiLu&appIds[32][app_type]=information&appIds[33][app_id]=GongYiXinXiKa&appIds[33][app_type]=information&appIds[34][app_id]=GangWeiCaoZuoGuiFan&appIds[34][app_type]=information&appIds[35][app_id]=MeiRiYiTi&appIds[35][app_type]=workflow&appIds[36][app_id]=BanZuPingBi&appIds[36][app_type]=information&appIds[37][app_id]=YinHuanPaiChaXiang&appIds[37][app_type]=information&appIds[38][app_id]=YinHuanPaiChaBiao&appIds[38][app_type]=information&appIds[39][app_id]=NianDuPaiChaJiHua&appIds[39][app_type]=workflow&appIds[40][app_id]=PaiChaJiHuaQingDan&appIds[40][app_type]=information&appIds[41][app_id]=YinHuanPaiCha&appIds[41][app_type]=information&appIds[42][app_id]=HSEGuanChaKa73&appIds[42][app_type]=workflow&appIds[43][app_id]=HSEGuanChaKaTaiZhang&appIds[43][app_type]=information&appIds[44][app_id]=GuanJianZhuangZhiJiZ&appIds[44][app_type]=information&appIds[45][app_id]=YinHuanZhiLi&appIds[45][app_type]=workflow&appIds[46][app_id]=YinHuanTaiZhang&appIds[46][app_type]=information&appIds[47][app_id]=FengXianFenXi40&appIds[47][app_type]=workflow&appIds[48][app_id]=FengXianBianGeng&appIds[48][app_type]=workflow&appIds[49][app_id]=FengXianFenXiTaiZhan&appIds[49][app_type]=information&appIds[50][app_id]=ngXianBianShiQingD22&appIds[50][app_type]=information&appIds[51][app_id]=HAZOPTaiZhang&appIds[51][app_type]=information&appIds[52][app_id]=ongDaFengXianGuanK57&appIds[52][app_type]=information&appIds[53][app_id]=QiYeZhongDianGuanZhu&appIds[53][app_type]=information&appIds[54][app_id]=FengXianTaiZhangFuJi&appIds[54][app_type]=information&appIds[55][app_id]=WeiXianYuanTaiZhang&appIds[55][app_type]=information&appIds[56][app_id]=ZhongDaWeiXianYuanGo&appIds[56][app_type]=information&appIds[57][app_id]=ZhongDaWeiXianYuanBe&appIds[57][app_type]=information&appIds[58][app_id]=FengXianFenLei&appIds[58][app_type]=information&appIds[59][app_id]=PeiXunDaLeiXiaoLei&appIds[59][app_type]=information&appIds[60][app_id]=WeiXianWuZhi&appIds[60][app_type]=information&appIds[61][app_id]=WangGeQuYu&appIds[61][app_type]=information&appIds[62][app_id]=BanZuPingBiZiDianBia&appIds[62][app_type]=information&appIds[63][app_id]=BanZuKaoPingXiang&appIds[63][app_type]=information&appIds[64][app_id]=GuanChaTiShiXiang&appIds[64][app_type]=information&appIds[65][app_id]=HSEPeiXunGangWeiZiDi&appIds[65][app_type]=information&appIds[66][app_id]=aoShanKuQuYiQingQiJi&appIds[66][app_type]=workflow&appIds[67][app_id]=linshiyongdiandonghu&appIds[67][app_type]=workflow&appIds[68][app_id]=zerenshuzhiku&appIds[68][app_type]=information&appIds[69][app_id]=zerenshuzhiqianding&appIds[69][app_type]=workflow&appIds[70][app_id]=zerenshuzhipinggu&appIds[70][app_type]=workflow&appIds[71][app_id]=zerenshuzhizidianbia&appIds[71][app_type]=information&appIds[72][app_id]=zuzhijigougangweiren&appIds[72][app_type]=workflow&appIds[73][app_id]=zhijigougangweiren78&appIds[73][app_type]=information&appIds[74][app_id]=yichangshijianjiweis&appIds[74][app_type]=workflow&appIds[75][app_id]=shigubaogao&appIds[75][app_type]=workflow&appIds[76][app_id]=dianxinganlifenxiang&appIds[76][app_type]=information&appIds[77][app_id]=baiwangongshitongjif&appIds[77][app_type]=information&appIds[78][app_id]=fengxianyanpan&appIds[78][app_type]=information&condition[type]=day&condition[time]=2020-8&condition[turn]=left"
    yingjijiuyuan = "https://www.sinochemlogistics.com/napi/enterprise/getEntAppData?appIds[0][app_id]=dianweixinxitaizhang&appIds[0][app_type]=information&appIds[1][app_id]=YingJiNengLiPingGuGu&appIds[1][app_type]=information&appIds[2][app_id]=YingJiWuZiQuYu&appIds[2][app_type]=information&appIds[3][app_id]=miehuoqidianweixinxi&appIds[3][app_type]=information&appIds[4][app_id]=QiYeYingJiZuZhi&appIds[4][app_type]=information&appIds[5][app_id]=QiYeYingJiDuiWu&appIds[5][app_type]=information&appIds[6][app_id]=qiyeyingjitongdao&appIds[6][app_type]=information&appIds[7][app_id]=QiYeYingJiWuZi&appIds[7][app_type]=information&appIds[8][app_id]=QiYeYingJiZhuangBei&appIds[8][app_type]=information&appIds[9][app_id]=QiYeYingJiBiNanChang&appIds[9][app_type]=information&appIds[10][app_id]=YingJiZiLiaoKu&appIds[10][app_type]=information&appIds[11][app_id]=kangtaiziliao&appIds[11][app_type]=information&appIds[12][app_id]=WaiBuYingJiJiuYuanWu&appIds[12][app_type]=information&appIds[13][app_id]=WaiBuYingJiJiuYuanZh&appIds[13][app_type]=information&appIds[14][app_id]=WaiBuYingJiJiuYuanDu&appIds[14][app_type]=information&appIds[15][app_id]=TongXunJiGouGuanLi&appIds[15][app_type]=information&appIds[16][app_id]=YiLiaoBaoZhangJiGou&appIds[16][app_type]=information&appIds[17][app_id]=QiYeGangWeiYingJiChu&appIds[17][app_type]=information&appIds[18][app_id]=ZhuanXiangZongHeYing&appIds[18][app_type]=workflow&appIds[19][app_id]=YeZhuanXiangZongHe71&appIds[19][app_type]=information&appIds[20][app_id]=uanXiangZongHeYing99&appIds[20][app_type]=workflow&appIds[21][app_id]=XianChangChuZhiFangA&appIds[21][app_type]=workflow&appIds[22][app_id]=anChangChuZhiFangA86&appIds[22][app_type]=workflow&appIds[23][app_id]=anChangChuZhiFangA32&appIds[23][app_type]=information&appIds[24][app_id]=ngJiYuAnBeiAnGuanL47&appIds[24][app_type]=information&appIds[25][app_id]=nLianJiHuaYuFangAn56&appIds[25][app_type]=workflow&appIds[26][app_id]=nLianJiHuaTaiZhang90&appIds[26][app_type]=information&appIds[27][app_id]=YanLianZongJieBaoGao&appIds[27][app_type]=workflow&appIds[28][app_id]=YanLianShiShiYuPingG&appIds[28][app_type]=information&appIds[29][app_id]=YanLianZhengGaiCuoSh&appIds[29][app_type]=workflow&appIds[30][app_id]=anLianZhengGaiCuoSh4&appIds[30][app_type]=information&appIds[31][app_id]=FangHuoJianChaJiHua&appIds[31][app_type]=workflow&appIds[32][app_id]=FangHuoJianChaJiHuaT&appIds[32][app_type]=information&appIds[33][app_id]=ngHuoJianChaJiLuJi47&appIds[33][app_type]=workflow&appIds[34][app_id]=FangHuoJianChaJiLuJi&appIds[34][app_type]=information&appIds[35][app_id]=RenYuanQianDao&appIds[35][app_type]=information&appIds[36][app_id]=ingDaoGanBuZhiBanDa4&appIds[36][app_type]=workflow&appIds[37][app_id]=ZhiBanDaiBanXiangGua&appIds[37][app_type]=workflow&appIds[38][app_id]=ngDaoGanBuZhiBanDa28&appIds[38][app_type]=information&appIds[39][app_id]=ZhiDingRenYuanQianDa&appIds[39][app_type]=information&appIds[40][app_id]=QiYeZhiBanPaiBanBiao&appIds[40][app_type]=information&appIds[41][app_id]=QiYeJiaoJieBanJiLuBi&appIds[41][app_type]=information&appIds[42][app_id]=ShiGuJieJingDan&appIds[42][app_type]=information&appIds[43][app_id]=ShiGuXuBaoDan&appIds[43][app_type]=information&appIds[44][app_id]=cishengshigu&appIds[44][app_type]=information&appIds[45][app_id]=gongyiliuchengtu&appIds[45][app_type]=information&appIds[46][app_id]=yingjidituzhushi&appIds[46][app_type]=information&appIds[47][app_id]=YingJiHuiFuDengJi&appIds[47][app_type]=information&appIds[48][app_id]=ShiGuDiaoChaBaoGao13&appIds[48][app_type]=information&appIds[49][app_id]=ShiGuZongJieBaoGao&appIds[49][app_type]=information&appIds[50][app_id]=MSDSKu8bac&appIds[50][app_type]=information&appIds[51][app_id]=yingjisheshileibie&appIds[51][app_type]=information&appIds[52][app_id]=shigufenji&appIds[52][app_type]=information&appIds[53][app_id]=guanqua0f7&appIds[53][app_type]=information&appIds[54][app_id]=JiaoJieBanRenYuanKaH&appIds[54][app_type]=information&appIds[55][app_id]=TianQiLeiXing&appIds[55][app_type]=information&appIds[56][app_id]=XiangGuanBuMenBiao&appIds[56][app_type]=information&appIds[57][app_id]=RenYuanQianDaoTongJi&appIds[57][app_type]=information&appIds[58][app_id]=YuAnMingCheng&appIds[58][app_type]=information&appIds[59][app_id]=FangHuoJianChaDaoWen&appIds[59][app_type]=information&appIds[60][app_id]=ChuGuanXinXi&appIds[60][app_type]=information&appIds[61][app_id]=QiYeShiPinJianKong&appIds[61][app_type]=information&appIds[62][app_id]=FangHuoJianChaTBD&appIds[62][app_type]=information&appIds[63][app_id]=JianChaXiangMuTBD&appIds[63][app_type]=information&appIds[64][app_id]=QiYeWuZiLeiBie&appIds[64][app_type]=information&appIds[65][app_id]=WuZiLeiBie&appIds[65][app_type]=information&appIds[66][app_id]=DuiWuLeiXing&appIds[66][app_type]=information&appIds[67][app_id]=DuiWuShuXing&appIds[67][app_type]=information&appIds[68][app_id]=ShiYongXingYe&appIds[68][app_type]=information&appIds[69][app_id]=JiuYuanZhuanYe&appIds[69][app_type]=information&appIds[70][app_id]=ZhuanYeLeiBie&appIds[70][app_type]=information&appIds[71][app_id]=JiShuZhiCheng&appIds[71][app_type]=information&appIds[72][app_id]=ShiGuLeiXing&appIds[72][app_type]=information&appIds[73][app_id]=dakaqiandaorenyuanbi&appIds[73][app_type]=information&appIds[74][app_id]=yingjitongdaoquanxia&appIds[74][app_type]=information&appIds[75][app_id]=QiYeZhuanXiangZongHe&appIds[75][app_type]=workflow&appIds[76][app_id]=YeZhuanXiangZongHe58&appIds[76][app_type]=workflow&appIds[77][app_id]=QiYeXianChangChuZhiF&appIds[77][app_type]=workflow&appIds[78][app_id]=YeXianChangChuZhiF71&appIds[78][app_type]=workflow&appIds[79][app_id]=LingDaoGanBuZhiBanDa&appIds[79][app_type]=workflow&appIds[80][app_id]=saomaqiandao&appIds[80][app_type]=information&condition[type]=day&condition[time]=2020-8&condition[turn]=left"
    oa = "https://www.sinochemlogistics.com/napi/enterprise/getEntAppData?appIds[0][app_id]=HuiYiShiXinXi52&appIds[0][app_type]=information&appIds[1][app_id]=HuiYiShenQing52&appIds[1][app_type]=workflow&appIds[2][app_id]=HuiYiJueYiDuBan&appIds[2][app_type]=information&appIds[3][app_id]=JieDaiGuanLi&appIds[3][app_type]=workflow&appIds[4][app_id]=JieDianCongBiaoWeiHu&appIds[4][app_type]=information&appIds[5][app_id]=ShangWuHuoDong&appIds[5][app_type]=workflow&appIds[6][app_id]=JieDianTianJiaCongBi&appIds[6][app_type]=information&appIds[7][app_id]=CheLiangXinXi&appIds[7][app_type]=information&appIds[8][app_id]=JiaShiYuanXinXiOA&appIds[8][app_type]=information&appIds[9][app_id]=YongCheShenQing&appIds[9][app_type]=workflow&appIds[10][app_id]=CheLiangWeiXiu&appIds[10][app_type]=workflow&appIds[11][app_id]=YinZhangJiBenXinXi&appIds[11][app_type]=information&appIds[12][app_id]=YinZhangShiYongShenQ&appIds[12][app_type]=workflow&appIds[13][app_id]=HeTongZhuanYongZhang&appIds[13][app_type]=information&appIds[14][app_id]=KeCanShenQing&appIds[14][app_type]=workflow&appIds[15][app_id]=HeTongXinXi&appIds[15][app_type]=information&appIds[16][app_id]=OAHeTongBianGeng&appIds[16][app_type]=workflow&appIds[17][app_id]=HeTongLvXing&appIds[17][app_type]=workflow&appIds[18][app_id]=GongChengLeiHeTongSh&appIds[18][app_type]=workflow&appIds[19][app_id]=QiTaLeiHeTongShenPi&appIds[19][app_type]=workflow&appIds[20][app_id]=CaiGouLeiHeTongShenP&appIds[20][app_type]=workflow&appIds[21][app_id]=GongSiFaWen&appIds[21][app_type]=workflow&appIds[22][app_id]=GongSiFaWenTeShu&appIds[22][app_type]=workflow&appIds[23][app_id]=GongSiFaWenXiuGai&appIds[23][app_type]=workflow&appIds[24][app_id]=DangWeiFaWen&appIds[24][app_type]=workflow&appIds[25][app_id]=NeiBuQingShi&appIds[25][app_type]=workflow&appIds[26][app_id]=NeiBuQingShiTeShu&appIds[26][app_type]=workflow&appIds[27][app_id]=ShouWenGuanLi&appIds[27][app_type]=workflow&appIds[28][app_id]=BuMenFaWen&appIds[28][app_type]=workflow&appIds[29][app_id]=GongGaoTongZhi&appIds[29][app_type]=workflow&appIds[30][app_id]=BuMenFaWenXiuGai&appIds[30][app_type]=workflow&appIds[31][app_id]=HuiYiJiYao&appIds[31][app_type]=workflow&appIds[32][app_id]=HuiYiJiYaoXiuGai&appIds[32][app_type]=workflow&appIds[33][app_id]=GongSiBianHan&appIds[33][app_type]=workflow&appIds[34][app_id]=GongSiBianHanTeShu&appIds[34][app_type]=workflow&appIds[35][app_id]=JiWeiFaWen&appIds[35][app_type]=workflow&appIds[36][app_id]=JieDaiHuoDongNeiRong&appIds[36][app_type]=information&appIds[37][app_id]=GongSiFaWenWenJianKu&appIds[37][app_type]=information&appIds[38][app_id]=HuiYiJiYaoWenJianKu&appIds[38][app_type]=information&appIds[39][app_id]=BuMenFaWenWenJianKu&appIds[39][app_type]=information&appIds[40][app_id]=YinZhangMingCheng&appIds[40][app_type]=information&appIds[41][app_id]=ShangWuHuoDongAnPai&appIds[41][app_type]=information&appIds[42][app_id]=ShiTangXinXi&appIds[42][app_type]=information&appIds[43][app_id]=YongHuLingDaoXinXi&appIds[43][app_type]=information&appIds[44][app_id]=LvXingJiLu&appIds[44][app_type]=information&appIds[45][app_id]=BianGengJiLu&appIds[45][app_type]=information&appIds[46][app_id]=BuMenMingCheng&appIds[46][app_type]=information&appIds[47][app_id]=JieDaiFeiYongXiangMu&appIds[47][app_type]=information&appIds[48][app_id]=BaoXianGongSi&appIds[48][app_type]=information&appIds[49][app_id]=LiuChengJieDianAnNiu&appIds[49][app_type]=information&appIds[50][app_id]=fujianguanli&appIds[50][app_type]=information&condition[type]=day&condition[time]=2020-8&condition[turn]=left"
    cm = "https://www.sinochemlogistics.com/napi/enterprise/getEntAppData?appIds[0][app_id]=SheBeiJiChuXinXi&appIds[0][app_type]=information&appIds[1][app_id]=SheBeiJiLu&appIds[1][app_type]=information&appIds[2][app_id]=shebeitaizhangweihu&appIds[2][app_type]=information&appIds[3][app_id]=shebeijiluxin&appIds[3][app_type]=information&appIds[4][app_id]=BianMaKuBianGengShen&appIds[4][app_type]=workflow&appIds[5][app_id]=anMaKuBianGengShen88&appIds[5][app_type]=workflow&appIds[6][app_id]=WenTiShenBao&appIds[6][app_type]=workflow&appIds[7][app_id]=ngxinggongchenglia21&appIds[7][app_type]=workflow&appIds[8][app_id]=SheBeiSheShiJianWeiX&appIds[8][app_type]=workflow&appIds[9][app_id]=JiHuaJiuPian&appIds[9][app_type]=workflow&appIds[10][app_id]=JianWeiXiuGongDan26&appIds[10][app_type]=workflow&appIds[11][app_id]=LingXingGongDan&appIds[11][app_type]=workflow&appIds[12][app_id]=GongDanDangAnXin&appIds[12][app_type]=information&appIds[13][app_id]=GongDanDangAn98&appIds[13][app_type]=information&appIds[14][app_id]=shebeibianmaku&appIds[14][app_type]=information&appIds[15][app_id]=lingxinggongchenglia&appIds[15][app_type]=workflow&appIds[16][app_id]=lingxinggongchengqia&appIds[16][app_type]=workflow&appIds[17][app_id]=ngxinggongchengqia12&appIds[17][app_type]=information&appIds[18][app_id]=lingxinggongchengyan&appIds[18][app_type]=workflow&appIds[19][app_id]=shebeiqiyongshenqing&appIds[19][app_type]=workflow&appIds[20][app_id]=shebeitingyong&appIds[20][app_type]=workflow&appIds[21][app_id]=gudingzichanbaofeish&appIds[21][app_type]=workflow&appIds[22][app_id]=gudingzichanruzhang&appIds[22][app_type]=workflow&appIds[23][app_id]=gudingzichanzhuanyi&appIds[23][app_type]=workflow&appIds[24][app_id]=gudingzichantaizhang&appIds[24][app_type]=information&appIds[25][app_id]=shebeirunhuajihua&appIds[25][app_type]=workflow&appIds[26][app_id]=runhuaguanlizhidu&appIds[26][app_type]=information&appIds[27][app_id]=runhuayouzhilingyong&appIds[27][app_type]=information&appIds[28][app_id]=youpintianjiajilu&appIds[28][app_type]=information&appIds[29][app_id]=youzhijiancejilu&appIds[29][app_type]=information&appIds[30][app_id]=shebeirunhuayouzhige&appIds[30][app_type]=workflow&appIds[31][app_id]=runhuaguanlitaizhang&appIds[31][app_type]=information&appIds[32][app_id]=runhuajihua&appIds[32][app_type]=workflow&appIds[33][app_id]=weibaoyaoqiu&appIds[33][app_type]=information&appIds[34][app_id]=yijiweibaojihua&appIds[34][app_type]=information&appIds[35][app_id]=yijiweibaoneirong&appIds[35][app_type]=information&appIds[36][app_id]=erjiweibaojihua&appIds[36][app_type]=information&appIds[37][app_id]=erjiweibaoneirong&appIds[37][app_type]=information&appIds[38][app_id]=zhuanxiangjianchajih&appIds[38][app_type]=workflow&appIds[39][app_id]=yijiweibaozhixingqin&appIds[39][app_type]=workflow&appIds[40][app_id]=erjiweibaozhixingqin&appIds[40][app_type]=workflow&appIds[41][app_id]=zhuanxiangjianchazhi&appIds[41][app_type]=workflow&appIds[42][app_id]=weibaojihuabangdings&appIds[42][app_type]=information&appIds[43][app_id]=BaoFeiJiLu&appIds[43][app_type]=information&appIds[44][app_id]=ZhuanYiJiLu&appIds[44][app_type]=information&appIds[45][app_id]=SheBeiBianGengJiLu&appIds[45][app_type]=information&appIds[46][app_id]=ErJiWeiBaoJiLu&appIds[46][app_type]=information&appIds[47][app_id]=YiJiWeiBaoJiLu&appIds[47][app_type]=information&appIds[48][app_id]=SheBeiYunXing&appIds[48][app_type]=information&appIds[49][app_id]=JianWeiXiuGongDanXin&appIds[49][app_type]=workflow&appIds[50][app_id]=liansuotouyun&appIds[50][app_type]=workflow&appIds[51][app_id]=liansuozhaichu&appIds[51][app_type]=workflow&appIds[52][app_id]=liansuotaizhang&appIds[52][app_type]=information&appIds[53][app_id]=fangfushitaizhang&appIds[53][app_type]=workflow&appIds[54][app_id]=chuguanfangfushitaiz&appIds[54][app_type]=information&appIds[55][app_id]=guandaofangfushitaiz&appIds[55][app_type]=information&appIds[56][app_id]=fangfushigongzuojihu&appIds[56][app_type]=workflow&appIds[57][app_id]=dingdiancehoujilu&appIds[57][app_type]=information&appIds[58][app_id]=tezhongshebeidingqij&appIds[58][app_type]=information&appIds[59][app_id]=tezhongshebeiyunxing&appIds[59][app_type]=information&appIds[60][app_id]=ezhongshebeinianduj9&appIds[60][app_type]=workflow&appIds[61][app_id]=oluanquanfujianjiy65&appIds[61][app_type]=information&appIds[62][app_id]=guoluanquanfujianwei&appIds[62][app_type]=information&appIds[63][app_id]=guolufujianweibaojil&appIds[63][app_type]=information&appIds[64][app_id]=guolufujianjilucongb&appIds[64][app_type]=information&appIds[65][app_id]=xunjiandian&appIds[65][app_type]=information&appIds[66][app_id]=xunjianjilu&appIds[66][app_type]=information&appIds[67][app_id]=shebeibaofeipingguba&appIds[67][app_type]=workflow&appIds[68][app_id]=shebeibaofeishenqing&appIds[68][app_type]=workflow&appIds[69][app_id]=jingmifengdianxielou&appIds[69][app_type]=information&appIds[70][app_id]=shebeixuanxingguanli&appIds[70][app_type]=information&appIds[71][app_id]=shebeiniandujianceji&appIds[71][app_type]=workflow&appIds[72][app_id]=jidianbaohutaizhang&appIds[72][app_type]=information&appIds[73][app_id]=gongsijingbanhuishen&appIds[73][app_type]=information&appIds[74][app_id]=xiangmujianyishu&appIds[74][app_type]=information&appIds[75][app_id]=yukeyanbianzhi&appIds[75][app_type]=information&appIds[76][app_id]=ngsijingbanhuishen98&appIds[76][app_type]=information&appIds[77][app_id]=yukeyanlixiangshangb&appIds[77][app_type]=information&appIds[78][app_id]=wuliuzhuanjiashencha&appIds[78][app_type]=information&appIds[79][app_id]=wuliujingbanhuisheny&appIds[79][app_type]=information&appIds[80][app_id]=nengyuanzhuanjiashen&appIds[80][app_type]=information&appIds[81][app_id]=nengyuanjingbanhuish&appIds[81][app_type]=information&appIds[82][app_id]=lixiangpifu&appIds[82][app_type]=information&appIds[83][app_id]=xiangmuguihuaxuanzhi&appIds[83][app_type]=information&appIds[84][app_id]=tudiyushen&appIds[84][app_type]=information&appIds[85][app_id]=keyanbianzhi&appIds[85][app_type]=information&appIds[86][app_id]=ngsijingbanhuishen29&appIds[86][app_type]=information&appIds[87][app_id]=keyantouzishangbao&appIds[87][app_type]=information&appIds[88][app_id]=uliuzhuanjiashencha5&appIds[88][app_type]=information&appIds[89][app_id]=liujingbanhuisheny22&appIds[89][app_type]=information&appIds[90][app_id]=ngyuanzhuanjiashen66&appIds[90][app_type]=information&appIds[91][app_id]=ngyuanjingbanhuish70&appIds[91][app_type]=information&appIds[92][app_id]=keyantouzipifu&appIds[92][app_type]=information&appIds[93][app_id]=bianzhihuanpinganpin&appIds[93][app_type]=information&appIds[94][app_id]=yongdiguihuaxuke&appIds[94][app_type]=information&appIds[95][app_id]=yongdihezhun&appIds[95][app_type]=information&appIds[96][app_id]=yongdihetongtudizhen&appIds[96][app_type]=information&appIds[97][app_id]=xiangmuhezhun&appIds[97][app_type]=information&appIds[98][app_id]=dizhichubukantan&appIds[98][app_type]=information&appIds[99][app_id]=shizhuang2&appIds[99][app_type]=information&appIds[100][app_id]=chubusheji&appIds[100][app_type]=information&appIds[101][app_id]=chubushejigaisuan&appIds[101][app_type]=information&appIds[102][app_id]=xiaofangzhuanpian&appIds[102][app_type]=information&appIds[103][app_id]=huanbaozhuanpian&appIds[103][app_type]=information&appIds[104][app_id]=jienengzhuanpian&appIds[104][app_type]=information&appIds[105][app_id]=shuibaozhuanpian&appIds[105][app_type]=information&appIds[106][app_id]=fangleizhuanpian&appIds[106][app_type]=information&appIds[107][app_id]=zhijianzhuanpian&appIds[107][app_type]=information&appIds[108][app_id]=anquanzhuanpian&appIds[108][app_type]=information&appIds[109][app_id]=chubushejijigaisuanz&appIds[109][app_type]=information&appIds[110][app_id]=zhuanpianshenchazhua&appIds[110][app_type]=information&appIds[111][app_id]=chubushejibaogaogais&appIds[111][app_type]=information&appIds[112][app_id]=dizhixiangxikantan&appIds[112][app_type]=information&appIds[113][app_id]=xiangxishejishigongt&appIds[113][app_type]=information&appIds[114][app_id]=shejichengbaoshangbe&appIds[114][app_type]=information&appIds[115][app_id]=xiaofangshejishencha&appIds[115][app_type]=information&appIds[116][app_id]=fangleizhuangzhishej&appIds[116][app_type]=information&appIds[117][app_id]=shigongtuzhuanyeshen&appIds[117][app_type]=information&appIds[118][app_id]=angxishejishigongt79&appIds[118][app_type]=information&appIds[119][app_id]=angxishejishigongt54&appIds[119][app_type]=information&appIds[120][app_id]=jishujiaodi&appIds[120][app_type]=information&appIds[121][app_id]=jungongtu8&appIds[121][app_type]=information&appIds[122][app_id]=shejigongzuojihuajis&appIds[122][app_type]=information&appIds[123][app_id]=shejiyuebao&appIds[123][app_type]=information&appIds[124][app_id]=gongchengxiangmushej&appIds[124][app_type]=information&appIds[125][app_id]=xiangmutaizhang&appIds[125][app_type]=information&appIds[126][app_id]=daxiujigaiqingkuang&appIds[126][app_type]=information&appIds[127][app_id]=xinjianxiangmuqingku&appIds[127][app_type]=information&condition[type]=day&condition[time]=2020-8&condition[turn]=left"
    yuangongfazhan = "https://www.sinochemlogistics.com/napi/enterprise/getEntAppData?appIds[0][app_id]=QiYeGuanLi&appIds[0][app_type]=information&appIds[1][app_id]=GangWeiDiTu&appIds[1][app_type]=information&appIds[2][app_id]=GangWeiGuanLi&appIds[2][app_type]=information&appIds[3][app_id]=RenCaiKu74&appIds[3][app_type]=information&appIds[4][app_id]=WoDeJianLi&appIds[4][app_type]=information&appIds[5][app_id]=WoDeJiNengShu&appIds[5][app_type]=information&appIds[6][app_id]=WoDeGangWei&appIds[6][app_type]=information&appIds[7][app_id]=JiNengDianLiang&appIds[7][app_type]=information&appIds[8][app_id]=ShiTuJieDuiShenQing&appIds[8][app_type]=workflow&appIds[9][app_id]=ShiTuJieDuiGuanLi&appIds[9][app_type]=information&appIds[10][app_id]=ShiTuJieDuiZhongZhiS&appIds[10][app_type]=workflow&appIds[11][app_id]=ShiTuJieDui-JieDuanZ&appIds[11][app_type]=workflow&appIds[12][app_id]=ShiTuJieDui-PeiXunZo&appIds[12][app_type]=workflow&appIds[13][app_id]=LunGangShenQing&appIds[13][app_type]=workflow&appIds[14][app_id]=LunGangGuanLi&appIds[14][app_type]=information&appIds[15][app_id]=GongZuoJiaoJieShenQi&appIds[15][app_type]=workflow&appIds[16][app_id]=YueDuHuiBao&appIds[16][app_type]=workflow&appIds[17][app_id]=LunGangZongJie&appIds[17][app_type]=information&appIds[18][app_id]=LunGangPingJia&appIds[18][app_type]=workflow&condition[type]=day&condition[time]=2020-8&condition[turn]=left"
    yewuzixitong = "https://www.sinochemlogistics.com/napi/enterprise/getEntAppData?appIds[0][app_id]=KeHuZiLiaoGuanLi&appIds[0][app_type]=information&appIds[1][app_id]=KeHuZhangHaoGuanLi&appIds[1][app_type]=information&appIds[2][app_id]=ChanPinZiLiaoGuanLi&appIds[2][app_type]=information&appIds[3][app_id]=ChuGuanGuanLi&appIds[3][app_type]=information&appIds[4][app_id]=HeWeiGuanLi&appIds[4][app_type]=information&appIds[5][app_id]=BengGuanLi&appIds[5][app_type]=information&appIds[6][app_id]=GuanXianGuanLi&appIds[6][app_type]=information&appIds[7][app_id]=ChuanBoZiLiaoGuanLi&appIds[7][app_type]=information&appIds[8][app_id]=CheLiangXinXiGuanLi&appIds[8][app_type]=information&appIds[9][app_id]=ChuanDaiDanWeiGuanLi&appIds[9][app_type]=information&appIds[10][app_id]=JiaShiYuanXinXi&appIds[10][app_type]=information&appIds[11][app_id]=MaTouGuanLi&appIds[11][app_type]=information&appIds[12][app_id]=BoWeiGuanLi&appIds[12][app_type]=information&appIds[13][app_id]=BaoGuanDanWeiGuanLi&appIds[13][app_type]=information&appIds[14][app_id]=HeTongGuanLi&appIds[14][app_type]=information&appIds[15][app_id]=HeTongShenPi&appIds[15][app_type]=workflow&appIds[16][app_id]=HeTongBianGeng&appIds[16][app_type]=workflow&appIds[17][app_id]=HeTongZhongZhi&appIds[17][app_type]=workflow&appIds[18][app_id]=HeTongZhangCunGuanLi&appIds[18][app_type]=information&appIds[19][app_id]=HeTongZhangCunLiuShu&appIds[19][app_type]=information&appIds[20][app_id]=ZhangCunZhuanYi&appIds[20][app_type]=workflow&appIds[21][app_id]=ZhangCunDiaoZheng&appIds[21][app_type]=workflow&appIds[22][app_id]=XinYongEDu&appIds[22][app_type]=information&appIds[23][app_id]=CaiWuXiuGaiZhangCunE&appIds[23][app_type]=information&appIds[24][app_id]=YeWuJiHua&appIds[24][app_type]=workflow&appIds[25][app_id]=ShengChanJiHua&appIds[25][app_type]=workflow&appIds[26][app_id]=TiHuoQuanZhuanYi&appIds[26][app_type]=information&appIds[27][app_id]=WaiMaoFangXingGuanLi&appIds[27][app_type]=workflow&appIds[28][app_id]=WaiMaoHuoPinFangXing&appIds[28][app_type]=information&appIds[29][app_id]=ZuoYeJiHuaShu&appIds[29][app_type]=workflow&appIds[30][app_id]=ChuanBoZuoYe&appIds[30][app_type]=workflow&appIds[31][app_id]=GuanShuZuoYe&appIds[31][app_type]=workflow&appIds[32][app_id]=CheLiangZuoYe&appIds[32][app_type]=workflow&appIds[33][app_id]=MaTouZhuanShu&appIds[33][app_type]=workflow&appIds[34][app_id]=MaTouGuoBo&appIds[34][app_type]=workflow&appIds[35][app_id]=DaoGuanZuoYe&appIds[35][app_type]=workflow&appIds[36][app_id]=QingGuan&appIds[36][app_type]=workflow&appIds[37][app_id]=XiGuanZuoYe&appIds[37][app_type]=workflow&appIds[38][app_id]=PanDianZuoYe&appIds[38][app_type]=workflow&appIds[39][app_id]=ZuoYeJiLiangDan-LiSh&appIds[39][app_type]=workflow&appIds[40][app_id]=ZuoYeJiLiangDan-QiuG&appIds[40][app_type]=workflow&appIds[41][app_id]=YeWuJiHuaTaiZhang&appIds[41][app_type]=information&appIds[42][app_id]=ShengChanJiHuaTaiZha&appIds[42][app_type]=information&appIds[43][app_id]=ZuoYeTaiZhang&appIds[43][app_type]=information&appIds[44][app_id]=YeWuJiHuaTaiZhang1&appIds[44][app_type]=information&appIds[45][app_id]=ShangPinPinLei&appIds[45][app_type]=information&appIds[46][app_id]=DiBangShuJuWeiHu&appIds[46][app_type]=information&appIds[47][app_id]=Guan-HeWei-Beng-Guan&appIds[47][app_type]=information&appIds[48][app_id]=GuanXianYuBengGuanXi&appIds[48][app_type]=information&appIds[49][app_id]=YaLiXiShu1&appIds[49][app_type]=information&appIds[50][app_id]=LiuLiangJi&appIds[50][app_type]=information&appIds[51][app_id]=RongJiXinXi&appIds[51][app_type]=information&appIds[52][app_id]=XiaoShuXinXi&appIds[52][app_type]=information&appIds[53][app_id]=CangDancore&appIds[53][app_type]=information&condition[type]=day&condition[time]=2020-8&condition[turn]=left"
    cangdanzixitong = "https://www.sinochemlogistics.com/napi/enterprise/getEntAppData?appIds[0][app_id]=CangDanQianFaShenPi&appIds[0][app_type]=workflow&appIds[1][app_id]=ZiZhiPingGuShenQing&appIds[1][app_type]=workflow&appIds[2][app_id]=ZhiWuShuLiangFengXia&appIds[2][app_type]=workflow&appIds[3][app_id]=CangDanFenChaiShenPi&appIds[3][app_type]=workflow&appIds[4][app_id]=CangDanZhuXiaoGuanLi&appIds[4][app_type]=workflow&appIds[5][app_id]=CangDanZhiYaRongZiSh&appIds[5][app_type]=workflow&appIds[6][app_id]=CangDanZhuanRangGuan&appIds[6][app_type]=workflow&appIds[7][app_id]=CangDanYiChangGuanLi&appIds[7][app_type]=workflow&appIds[8][app_id]=CangDanFeiYongJieSua&appIds[8][app_type]=workflow&appIds[9][app_id]=ZhiWuJiaGeJianGuan&appIds[9][app_type]=workflow&appIds[10][app_id]=CangDanShuLiangJianG&appIds[10][app_type]=workflow&appIds[11][app_id]=KeHuZiXinPingGuBianG&appIds[11][app_type]=workflow&condition[type]=day&condition[time]=2020-8&condition[turn]=left"
    chuyun = ""
    hse = hse.replace("2020-8", str(VersionInfo))
    yingjijiuyuan = yingjijiuyuan.replace("2020-8", VersionInfo)
    oa = oa.replace("2020-8", VersionInfo)
    cm = cm.replace("2020-8", VersionInfo)
    yuangongfazhan = yuangongfazhan.replace("2020-8", VersionInfo)
    yewuzixitong = yewuzixitong.replace("2020-8", VersionInfo)
    cangdanzixitong = cangdanzixitong.replace("2020-8", VersionInfo)
    # web端和手机端的数据导入到数组中
    zhonghuadongfang=login.tongji("zhonghuadongfang")
    zhonghuanantonggang=login.tongji("zhonghuanantonggang")
    zhonghuayangzhou=login.tongji("zhonghuayangzhou")
    zhonghuatianjin=login.tongji("zhonghuatianjin")
    zhonghuazhuhai=login.tongji("zhonghuazhuhai")
    zhoushanguochu=login.tongji("zhoushanguochu")
    zhonghuaxinghai=login.tongji("zhonghuaxinghai")
    yingjijidi=login.tongji("yingjijidi")
    zhonghuazhoushan=login.tongji("zhonghuazhoushan")
    #  excel操作
    excellogin=yunyingribao()
    # 腾挪最近7天的数据
#    yunyingribao.nuodong(10, 11, 7, 12)
#    yunyingribao.nuodong(10, 11, 19, 24)
#    yunyingribao.nuodong(10, 11, 31, 36)
#    yunyingribao.nuodong(10, 11, 43, 48)
#    yunyingribao.nuodong(28, 29, 7, 12)
#    yunyingribao.nuodong(28, 29, 19, 24)
#    yunyingribao.nuodong(28, 29, 31, 36)
#    yunyingribao.nuodong(28, 29, 43, 48)
#    yunyingribao.nuodong(54, 57, 4, 9)
#    yunyingribao.nuodong(54, 57, 19, 24)
#    yunyingribao.nuodong(54, 57, 34, 39)
#    yunyingribao.nuodong(63, 66, 4, 9)
#    yunyingribao.nuodong(63, 66, 19, 24)
#    yunyingribao.nuodong(63, 66, 34, 39)
#    yunyingribao.nuodong(71, 74, 4, 9)
#    yunyingribao.nuodong(71, 74, 19, 24)
#    yunyingribao.nuodongsx(11,12,7,12)
#    yunyingribao.nuodongsx(11,12,19,24)
#    yunyingribao.nuodongsx(29,36,8,13)
# 运营日报推广-用户登录
    yunyingribao.tuiguang("zhonghuadongfang", zhonghuadongfang)
    yunyingribao.tuiguang("zhonghuayangzhou", zhonghuayangzhou)
    yunyingribao.tuiguang("zhonghuatianjin", zhonghuatianjin)
    yunyingribao.tuiguang("zhonghuazhuhai", zhonghuazhuhai)
    yunyingribao.tuiguang("zhoushanguochu", zhoushanguochu)
    yunyingribao.tuiguang("zhonghuaxinghai", zhonghuaxinghai)
    yunyingribao.tuiguang("yingjijidi", yingjijidi)
    yunyingribao.tuiguang("zhonghuanantonggang", zhonghuanantonggang)
# 运营日报上线部分-用户登录
    yunyingribao.shangxian("zhonghuazhoushan", zhonghuazhoushan)
    yunyingribao.shangxian("zhonghuanantonggang", zhonghuanantonggang)

# 运营日报推广-各系统数据增量
    zhonghuadongfang_z = login.zengliang("zhonghuadongfang")
    zhonghuanantonggang_z = login.zengliang("zhonghuanantonggang")
    zhonghuayangzhou_z = login.zengliang("zhonghuayangzhou")
    zhonghuatianjin_z = login.zengliang("zhonghuatianjin")
    zhonghuazhuhai_z = login.zengliang("zhonghuazhuhai")
    zhoushanguochu_z = login.zengliang("zhoushanguochu")
    zhonghuaxinghai_z = login.zengliang("zhonghuaxinghai")
    yingjijidi_z = login.zengliang("yingjijidi")
    zhonghuazhoushan_z = login.zengliang("zhonghuazhoushan")
    yunyingribao.tuiguangyonghuzengliang("zhonghuadongfang", zhonghuadongfang_z)
    yunyingribao.tuiguangyonghuzengliang("zhonghuayangzhou", zhonghuayangzhou_z)
    yunyingribao.tuiguangyonghuzengliang("zhonghuatianjin", zhonghuatianjin_z)
    yunyingribao.tuiguangyonghuzengliang("zhonghuazhuhai", zhonghuazhuhai_z)
    yunyingribao.tuiguangyonghuzengliang("zhoushanguochu", zhoushanguochu_z)
    yunyingribao.tuiguangyonghuzengliang("zhonghuaxinghai", zhonghuaxinghai_z)
    yunyingribao.tuiguangyonghuzengliang("yingjijidi", yingjijidi_z)
    yunyingribao.tuiguangyonghuzengliang("zhonghuanantonggang", zhonghuanantonggang_z)
# 运营日报上线部分-各系统数据增量
    yunyingribao.shangxianyonghuzengliang_nantong(zhonghuanantonggang_z)
    yunyingribao.shangxianyonghuzengliang_zhoushan(zhonghuazhoushan_z)
